//
//  NSMutableAttributedString+LLCoreText.h
//  LLFoundation
//
//  Created by my_liu on 2016/11/14.
//  Copyright © 2016年 . All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LLCoreTextImageAttributedStringStyle.h"
#import "LLCoreTextAttributedStringStyle.h"
#import "LLCoreTextKeywordAttributedStringStyle.h"
#import "LLCoreTextParagraphStyle.h"

#define kLLCoreTextImageInfoRangeKey  @"kLLCoreTextImageInfoRangeKey"
#define kLLCoreTextImageInfoStringKey @"kLLCoreTextImageInfoStringKey"

@interface NSMutableAttributedString (LLCoreText)

/* 插入图片标记 */
- (NSDictionary *)insertImageAttributedStringStyle:(LLCoreTextImageAttributedStringStyle*)imageAttributedString atIndex:(NSInteger)index;

/* 替换图片 */
- (NSDictionary *)replaceImageAttributedStringStyle:(LLCoreTextImageAttributedStringStyle*)imageAttributedString withImageRange:(NSRange)imageRange;

/* 插入多态字符串风格 */
- (void)insertAttributedStringStyle:(LLCoreTextAttributedStringStyle *)aStyle range:(NSRange)range;

/* 插入关键字风格 */
- (void)setKeywordEffectByStyle:(LLCoreTextKeywordAttributedStringStyle *)aStyle;

/* 指定范围关键字风格设定 */
- (void)setKeywordRangeEffectByStyle:(LLCoreTextKeywordAttributedStringStyle *)aStyle;

/* 插入段落风格 */
- (void)insertParagraphStyle:(LLCoreTextParagraphStyle *)aStyle range:(NSRange)range;

/* 整个字符串范围 */
- (NSRange)range;

@end
